package kizzo.gui 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldType;
	
	public class LabelledTextInput extends Sprite
	{
		public var label:TextField;		
		public var value:TextField;
		
		public function LabelledTextInput(label:String, value:String="") 
		{			
			this.label = new TextField();
			this.label.text = label;
			addChild(this.label);
			
			if (value != "")
			{
				this.value = new TextField();
				this.value.x = 100;
				this.value.type = TextFieldType.INPUT;
				this.value.border = true;
				this.value.width = 100;
				this.value.height = 20;
				this.value.text = value;
				addChild(this.value);
			}
		}
	}

}